import { Injectable } from '@angular/core';
import { CanActivate, ActivatedRouteSnapshot, RouterStateSnapshot } from '@angular/router';
import { Observable } from 'rxjs/Observable';

@Injectable()
export class LoginGuard implements CanActivate {
  canActivate(){
    let come:boolean = true ;
    if(come){
      console.log("成功登录")
    } else {
      console.log("登录失败")
    }
    return come;
  }
}

